package com.xbongbong.saas.domain.entity;


import lombok.Data;
import lombok.experimental.Accessors;


/**
 *
 * @author lzf
 * @date 2022/4/14 14:12
 */
@Data
@Accessors(chain = true)
public class DynamicEntity{
    /**
     * 主键
     */
    private Long id;
    /**
     * 公司id
     */
    private String corpid;
    /**
     * 客户id
     */
    private Long customerId;
    /**
     * 机会id
     */
    private Long opportunityId;
    /**
     * 联系人id
     */
    private Long contactId;
    /**
     * 合同id
     */
    private Long contractId;
    /**
     * 数据id
     */
    private Long dataId;
    /**
     *关联数据id
     */
    private Long refId;
    /**
     *关联业务类型
     */
    private Integer refBusinessType;
    /**
     *关联数据名称
     */
    private String refName;
    /**
     *跟进内容
     */
    private String memo;
    /**
     * 创建者userid
     */
    private String creatorId;
    /**
     * 类型
     */
    private Integer logType;
    /**
     * 创建时间时间戳
     */
    private Long addTime;
    /**
     * 更新时间时间戳
     */
    private Long updateTime;
    /**
     * 删除标记
     */
    private Integer del;

    public DynamicEntity() {

    }

    public DynamicEntity(String corpid, Long refId, Integer refBusinessType, String refName, String memo, String creatorId, Integer logType) {
        this.corpid = corpid;
        this.refId = refId;
        this.refBusinessType = refBusinessType;
        this.refName = refName;
        this.memo = memo;
        this.creatorId = creatorId;
        this.logType = logType;
    }

    public DynamicEntity(String corpid, String refName, String memo, String creatorId, Integer logType) {
        this.corpid = corpid;
        this.refName = refName;
        this.memo = memo;
        this.creatorId = creatorId;
        this.logType = logType;
    }
}
